package com.euond.permission.entities;

/**
 * Created by Daniel on 17/06/2017.
 * User special permission .
 */

import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@TableName(value = "sys_user_privilege")
public class UserPrivilege extends BaseEntity {

    /**
     * 租赁公司ID
     */
    private Long companyId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 资源ID
     */
    private Long resourceId;

    /**
     * 特殊增加权限
     */
    @NotNull
    private Integer addVal;

    /**
     * 特殊减少权限
     */
    @NotNull
    private Integer subVal;
}
